package com.dddd.blog.api.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("ums_follow")
@ApiModel(value = "Follow对象", description = "关注表")
@Data
public class Follow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("作者id")
    private Long authorId;

    @ApiModelProperty("关注者id")
    private Long followerId;

    @ApiModelProperty("关注时间")
    private LocalDateTime createTime;

    @ApiModelProperty("是否有效")
    private Integer isAvailable;

    @ApiModelProperty("备注")
    private String note;

    @Override
    public String toString() {
        return "Follow{" +
            "id=" + id +
            ", authorId=" + authorId +
            ", followerId=" + followerId +
            ", createTime=" + createTime +
            ", isAvailable=" + isAvailable +
            ", note=" + note +
        "}";
    }
}
